import Layout from '@/layout/default.vue'
import { BarcodeOutlined } from '@ant-design/icons-vue'

export default [
    {
        path: '/coupon',
        name: 'Coupon',
        redirect: '/coupon/list',
        component: Layout,
        meta: {
            navTitle: '优惠卷规则',
            order: 7,
            isSidebar: true,
            icon: () => h(BarcodeOutlined)
        },
        children: [
            {
                path: '/coupon/list',
                meta: {
                    title: '优惠卷列表',
                    order: 701
                },
                component: () => import('@/view/coupon/couponTable/coupon.vue')
            },
            {
                path: '/coupon/list/add',
                meta: {
                    title: '添加优惠卷',
                },
                component: () => import('@/view/coupon/couponTable/addCoupon.vue')
            },
            {
                path: '/coupon/setting',
                meta: {
                    title: '优惠卷设置',
                    order: 702
                },
                component: () => import('@/view/coupon/couponSetting/couponSetting.vue')
            }
        ]

    }
]